package com.yuntongxun.ecdemo.voicechat.api;

/**
 * 请求api
 * Created by liucanwen on 15/12/7.
 */
public class ApiConstants {

    /* TODO Prepending BASE_URL to all of these is ugly because we're storing the URL everywhere.
     * It would be nicer to only store the URL once and modify the calling code reference it. */

    public static final class Urls {
        public final static String BASE_URL = "http://120.77.49.124:8081/api/1.0/";                 //测试机
        //public final static String BASE_URL = "http://172.93.54.188:8080/VoiceChat/api/1.0/";     //测试机

        public final static String ACCOUNT = BASE_URL + "AccountAmountInfo";                        //钱包金额
        public final static String ACCOUNT_AMOUNT_DETAIL = BASE_URL + "accountAmountDetail";        //钱包明细
        public final static String ACCOUNT_COLLECT_ADD = BASE_URL + "accountCollectAdd";            //添加收藏
        public final static String ACCOUNT_COLLECT_DEL = BASE_URL + "accountCollectDel";            //删除收藏
        public final static String ACCOUNT_COLLECT_LIST = BASE_URL + "accountCollectList";          //收藏列表
        public final static String ACCOUNT_INFO = BASE_URL + "accountInfo";                         //群组信息
        public final static String ACCOUNT_LIST = BASE_URL + "accountList";                         //会员信息
        public final static String ACCOUNT_LOGIN = BASE_URL + "accountLogin";                       //账号登录
        public final static String ACCOUNT_ONLINE = BASE_URL + "accountOnline";                     //在线状态
        public final static String ACCOUNT_PAY = BASE_URL + "accountPay";                           //支付信息
        public final static String ACCOUNT_SEND_MESSAGE_BEFORE = BASE_URL + "accountMessageBefore"; //账户发送消息
        public final static String ACCOUNT_SEND_MESSAGE_AFTER = BASE_URL + "accountMessageAfter";   //账户发送消息
        public final static String ACCOUNT_TAKE_OUT = BASE_URL + "accountTakeout";                  //提现
        public final static String DELETE_VOICE = BASE_URL + "accountVoiceDel";                     //删除语音
        public final static String FEEDBACK_ADD = BASE_URL + "feedbackAdd";                         //举报
        public final static String FIND_PSD = BASE_URL + "accountFindPwd";                          //找回密码
        public final static String FOLLOW = BASE_URL + "accountFriendAdd";                          //加好友
        public final static String FRIEND_DEL = BASE_URL + "accountFriendDel";                      //删除好友
        public final static String FRIEND_LIST = BASE_URL + "accountFriendList";                    //好友
        public final static String GIFT_HANDLE = BASE_URL + "giftHandle";                           //购买礼物
        public final static String GIFT_RECEIVED = BASE_URL + "giftListMyReceive";                  //收到的礼物
        public final static String GIFT_RECEIVER_LIST = BASE_URL + "giftListMyReceive";             //获取收到的礼物列表
        public final static String GIFT_SENT = BASE_URL + "giftListMyHandsel";                      //收到的礼物
        public final static String GIFT_SYSTEM_LIST = BASE_URL + "giftList";                        //获取系统礼物列表
        public final static String GROUP_LIST = BASE_URL + "groupList";                             //群组信息
        public final static String REGISTER = BASE_URL + "accountReg";                              //注册
        public final static String REGISTER_SMS = BASE_URL + "accountEmail";                        //获取验证码
        public final static String RMB_TO_USD = BASE_URL + "rmbToUsd";                              //人民币转美元
        public final static String TOPIC_TAKE = BASE_URL + "topicTake";                             //话题
        public final static String UPDATE_INFO = BASE_URL + "accountUpdate";                        //更新个人信息
        public final static String VOICE_ADD = BASE_URL + "accountVoiceAdd";                        //添加语音介绍
    }

    public static final class EventTags {
        public final static int BEGIN_EVENT = 10;

        public final static int REFRESH_LIST_EVENT = BEGIN_EVENT + 1;
        public final static int LOAD_MORE_LIST_EVENT = BEGIN_EVENT + 2;
        public final static int ACCOUNT_LOGIN = BEGIN_EVENT + 3;                        //账号登录
        public final static int REGISTER_SMS = BEGIN_EVENT + 4;                         //获取验证码
        public final static int REGISTER = BEGIN_EVENT + 5;                             //注册
        public final static int USER_INFO = BEGIN_EVENT + 6;                            //获取个人信息
        public final static int FOLLOW = BEGIN_EVENT + 7;                               //关注
        public final static int GIFT_SYSTEM_LIST_REFRESH = BEGIN_EVENT + 9;             //获取系统礼物列表
        public final static int GIFT_SYSTEM_LIST_LOAD_MORE = BEGIN_EVENT + 9 + 100;     //获取系统礼物列表
        public final static int GIFT_RECEIVER_LIST_REFRESH = BEGIN_EVENT + 10;          //获取收到的礼物列表
        public final static int GIFT_RECEIVER_LIST_LOAD_MORE = BEGIN_EVENT + 10 + 100;  //获取收到的礼物列表
        public final static int ALIPAY = BEGIN_EVENT + 11;                              //支付宝信息
        public final static int WECHAT = BEGIN_EVENT + 12;                              //微信支付信息
        public final static int PAYPAL = BEGIN_EVENT + 13;                              //PayPal
        public final static int GIFT_HANDLE = BEGIN_EVENT + 14;                         //购买，兑换礼物
        public final static int UPLOAD_FILE = BEGIN_EVENT + 15;                         //上传语音文件
        public final static int ACCOUNT_INFO = BEGIN_EVENT + 16;                        //上传语音文件
        public final static int TOPIC_TAKE = BEGIN_EVENT + 17;                          //话题
        public final static int PAYPAL_URL = BEGIN_EVENT + 18;                          //话题
        public final static int VERSION_UPDATE = BEGIN_EVENT + 19;                      //版本更新
        public final static int DELETE_VOICE = BEGIN_EVENT + 21;                        //删除语音
        public final static int ACCOUNT_COLLECT_DEL = BEGIN_EVENT + 23;                 //删除收藏
        public final static int RMB_TO_USD = BEGIN_EVENT + 24;                          //人民币转美元
        public final static int ONLINE_STATE = BEGIN_EVENT + 25;                        //在线状态
        public final static int ACCOUNT_SEND_MESSAGE_BEFORE = BEGIN_EVENT + 26;         //账户发送消息前
        public final static int ACCOUNT_SEND_MESSAGE_AFTER = BEGIN_EVENT + 27;          //账户发送消息后
        public final static int FIND_PSD = BEGIN_EVENT + 27;                            //找回密码
        public final static int FRIEND_DEL = BEGIN_EVENT + 28;                          //删除好友
    }

    public static final class Integers {
        public static final int PAGE_LAZY_LOAD_DELAY_TIME_MS = 200;
    }

    public static final class Request{
        public static final int PAGE_NUMBER = 20;
    }
}
